package com.onluy.provider.department.entity;

import com.onluy.frameworkcloud.base.entity.TreeEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

public class SysDepart extends TreeEntity {

    @ApiModelProperty(value="部门ID" )
    @NotNull(message = "部门ID不能为空！")
    private Long id;

    @ApiModelProperty(value="上级部门ID" )
    @NotNull(message = "上级部门ID不能为空！")
    private Long parentId;

    @ApiModelProperty(value="部门编码" )
    @NotNull(message = "部门编码不能为空！")
    private String departCode;


    @ApiModelProperty(value="部门名称" )
    @NotNull(message = "部门名称不能为空！")
    private String departName;

    @ApiModelProperty(value="部门类型" )
    @NotNull(message = "部门类型不能为空！")
    private String departType;

    @ApiModelProperty(value="区域编码" )
    private String areaCode;

    @ApiModelProperty(value="部门状态" )
    @NotNull(message = "部门状态不能为空！")
    private String departState;

    @ApiModelProperty(value="部门地址" )
    private String departAddr;

    @ApiModelProperty(value="部门电话" )
    private String departPhone;

    @ApiModelProperty(value="部门管理员" )
    private Short departLevel;

    @ApiModelProperty(value="部门管理员" )
    private Long mgrId;

    @ApiModelProperty(value="排序" )
    private Integer orderNum;

    @ApiModelProperty(value="生效日期" )
    @NotNull(message = "生效日期不能为空！")
    private Date startTime;

    @ApiModelProperty(value="失效日期" )
    @NotNull(message = "失效日期不能为空！")
    private Date endTime;

    @ApiModelProperty(value="更新日期" )
    private Date updateTime;

    @ApiModelProperty(value="更新工号" )
    private Long updateStaff;

    @ApiModelProperty(value="百度经度" )
    private BigDecimal baiduLatitude;

    @ApiModelProperty(value="百度纬度" )
    private BigDecimal baiduLongitude;

    @ApiModelProperty(value="GPS经度" )
    private BigDecimal gpsLatitude;

    @ApiModelProperty(value="GPS纬度" )
    private BigDecimal gpsLongitude;

    @ApiModelProperty(value="部门备注" )
    private String departRemark;

    public String getDepartCode() {
        return departCode;
    }

    public void setDepartCode(String departCode) {
        this.departCode = departCode == null ? null : departCode.trim();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName == null ? null : departName.trim();
    }

    public String getDepartType() {
        return departType;
    }

    public void setDepartType(String departType) {
        this.departType = departType == null ? null : departType.trim();
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode == null ? null : areaCode.trim();
    }

    public String getDepartState() {
        return departState;
    }

    public void setDepartState(String departState) {
        this.departState = departState == null ? null : departState.trim();
    }

    public String getDepartAddr() {
        return departAddr;
    }

    public void setDepartAddr(String departAddr) {
        this.departAddr = departAddr == null ? null : departAddr.trim();
    }

    public String getDepartPhone() {
        return departPhone;
    }

    public void setDepartPhone(String departPhone) {
        this.departPhone = departPhone == null ? null : departPhone.trim();
    }

    public Short getDepartLevel() {
        return departLevel;
    }

    public void setDepartLevel(Short departLevel) {
        this.departLevel = departLevel;
    }

    public Long getMgrId() {
        return mgrId;
    }

    public void setMgrId(Long mgrId) {
        this.mgrId = mgrId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateStaff() {
        return updateStaff;
    }

    public void setUpdateStaff(Long updateStaff) {
        this.updateStaff = updateStaff;
    }

    public BigDecimal getBaiduLatitude() {
        return baiduLatitude;
    }

    public void setBaiduLatitude(BigDecimal baiduLatitude) {
        this.baiduLatitude = baiduLatitude;
    }

    public BigDecimal getBaiduLongitude() {
        return baiduLongitude;
    }

    public void setBaiduLongitude(BigDecimal baiduLongitude) {
        this.baiduLongitude = baiduLongitude;
    }

    public BigDecimal getGpsLatitude() {
        return gpsLatitude;
    }

    public void setGpsLatitude(BigDecimal gpsLatitude) {
        this.gpsLatitude = gpsLatitude;
    }

    public BigDecimal getGpsLongitude() {
        return gpsLongitude;
    }

    public void setGpsLongitude(BigDecimal gpsLongitude) {
        this.gpsLongitude = gpsLongitude;
    }

    public String getDepartRemark() {
        return departRemark;
    }

    public void setDepartRemark(String departRemark) {
        this.departRemark = departRemark == null ? null : departRemark.trim();
    }
}